package com.sdleyou.treepro.common.service;

import com.sdleyou.treepro.common.model.dao.Page;
import org.springframework.data.mongodb.core.query.Query;

public interface MongoPageManager {
    <T> Page pageQuery(Query query, Class<T> entityClass, Integer pageSize, Integer pageNum);

    <T> Page pageQuery(Query query, Class<T> entityClass, Integer pageSize, Integer pageNum, String collName);
}
